import { createApp } from 'vue'
// import './style.css'
import App from './App.vue'
import router from './router'
import axios from 'axios'

let app = createApp(App)
// vue2 全局挂载插件的方法是 Vue.use Vue.prototype.$xxx = xxx
// vue3 全局挂载插件的方法是 
// app.config.globalProperties.$插件名 = 插件或自己写方法
app.config.globalProperties.$ip = "http://www.baidu.com"

app.config.globalProperties.$run = () => {
  console.log("我是全局方法")
}
app.config.globalProperties.$axios = axios
app.use(router)
app.mount('#app')
